package com.his.struts.action.common;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts.actions.DispatchAction;

public class BaseAction extends DispatchAction {
	
	public static final String MESSAGE="message";
	
	public boolean hasAdminLogin(HttpServletRequest request){
		HttpSession session = request.getSession();
		Object obj = session.getAttribute("adminLogined");
		if(null == obj){
			return false;
		}
		return true;
	}
}
